import {
  ActionReducer,
  ActionReducerMap,
  createFeatureSelector,
  createSelector,
  MetaReducer,
} from '@ngrx/store';
import { environment } from '../../environments/environment';
import * as fromPerson from './reducers/person.reducer';

export interface AppState {  [fromPerson.personFeatureKey]: fromPerson.State;
}

export const reducers: ActionReducerMap<AppState> = {  [fromPerson.personFeatureKey]: fromPerson.reducer,
};

export const metaReducers: MetaReducer<AppState>[] = !environment.production
  ? []
  : [];
